<?php

    // +----------------------------------------------------------------------
    // | 用户中心模块公共控制器
    // +----------------------------------------------------------------------
    // | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
    // +----------------------------------------------------------------------
    // | Author: 微尘 <yicmf@qq.com>
    // +----------------------------------------------------------------------

    namespace app\controller\ucenter;

    use app\common\controller\Admin;
	use app\common\middleware\UserAuth;
	use app\model\ucenter\User as UserModel;

    class Common extends Admin
    {
        /**
         * 当前登录用户
         * @var UserModel
         */
        protected $user;
//		protected $middleware = [UserAuth::class];
        protected function initialize()
        {
            parent::initialize();
            $this->user = $this->request->user;
            $this->assign('user', $this->user);
        }

    }
